package com.kymatrix.kycarbon.xsmd.kbpm.server.model.enums;


import com.kymatrix.kycarbon.xsmd.common.business.common.BaseBusinessEnum;

import static com.kymatrix.kycarbon.xsmd.common.business.common.BaseBusinessEnum.SysConfigGroupName.WF_PROCESS_SUBMIT_TYPE;

/**
 * 流程提交类型（操作类型）
 */
public enum ProcessSubmitTypeEnum  implements BaseBusinessEnum {
    APPLY("0","发起申请"),
    AGREE("1", "同意申请"),
    REJECT("2", "拒绝申请"),
    ROLLBACK("3", "退回上一步"),
    JUMP("4", "跳转"),
    RE_APPLY("5", "重新提交"),
    ROLLBACK_TO_OPERATOR("6", "退回发起人"),
    COUNTERSIGN_DISAGREE("20", "拒绝申请")
    ;
    private final String code;

    private final String name;


    ProcessSubmitTypeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String getSysConfigGroupName() {
        return WF_PROCESS_SUBMIT_TYPE;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
